package com.wizhong.os.printimage;

public enum PaperSize {

	/** 4" × 6" */
	PAERSIZE_4_INCH(4 * PaperSize.PPI, 6 * PaperSize.PPI),

	/** 5" × 7" */
	PAERSIZE_5_INCH(5 * PaperSize.PPI, 7 * PaperSize.PPI),

	/** 6" × 8" */
	PAERSIZE_6_INCH(6 * PaperSize.PPI, 8 * PaperSize.PPI),

	/** 8" × 10" */
	PAERSIZE_8_INCH(8 * PaperSize.PPI, 10 * PaperSize.PPI);

	private int width;
	private int height;

	/** PPI 大小 和 打印机的DPI有关系 */
	/** 72像素/英寸 */
	private final static int PPI_72 = 72;
	/** 72像素/英寸 */
	private final static int PPI_180 = 180;
	/** 72像素/英寸 */
	private final static int PPI_300 = 300;
	
	private final static int PPI = PPI_72;

	// 自定义的构造函数，它为驱动、URL赋值
	PaperSize(int width, int height) {
		this.width = width;
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public int getHeight() {
		return height;
	}

}
